<%-- 
    Document   : procesar_programa
    Created on : 12-nov-2013, 23:23:12
    Author     : Roberto
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Conexión database</title>
    </head>
    <body>
        <%
            String programa = request.getParameter("programa");

            if (programa != null && !programa.equals("")) {
                session.setAttribute("programa", programa);
                response.sendRedirect("datos_programa.jsp");
            } else {
                response.sendRedirect("pedir_programa.jsp?error=1");
            }

        %>

    </body>
</html>
